using System;
using System.Configuration;
using System.Collections.Generic;
using System.Text;

namespace Pervote.Core
{
    public class PervoteSettings
    {
        private static string connectionString;
        public static string ConnectionString
        {
            get { return connectionString; }
            set { connectionString = value; }
        }

        static int cloudViewItemCount = 30;
        public static int CloudViewItemCount
        {
            get { return PervoteSettings.cloudViewItemCount; }
            set { PervoteSettings.cloudViewItemCount = value; }
        }

        static int shortPollViewItemCount = 20;
        public static int ShortPollViewItemCount
        {
            get { return PervoteSettings.shortPollViewItemCount; }
            set { PervoteSettings.shortPollViewItemCount = value; }
        }

        static PervoteSettings()
        {
            Reset();
        }

        public static void Reset()
        {
            connectionString = ConfigurationManager.ConnectionStrings["LocalSqlServer"].ConnectionString;
        }
    }
}
